package com.zc.im.controller;

import com.zc.im.service.im.group.ImGroupService;
import com.zc.im.util.ResponseJson;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * Created by wangcc on 2017/7/8.
 */
@Controller
@RequestMapping(value = "/group")
public class ImGroupController {

    @Autowired
    private ImGroupService imGroupService;
    private static Logger logger = Logger.getLogger(ImGroupController.class);


    /**
     *
     * @param group
     * @return
     */
    @RequestMapping(value = "/getgroup",method = RequestMethod.POST)
    public ResponseJson selectGroup(String group){
        return  null;
//        ResponseJson responseJson=new ResponseJson();
//        List<ZcImGroupModel> ZcImGroupMode2=null;
//        if (StringUtils.isEmpty(group)){
//            return responseJson;
//        }
//        Gson gson=new Gson();
//        ZcImGroupModel ZcImGroupModel=gson.fromJson(group,ZcImGroupModel.class);
//        try {
//            ZcImGroupMode2= imGroupService.queryAllGroup(ZcImGroupModel);
//        }catch (Exception e){
//            logger.error(e.getMessage(),e);
//        }
//        Map<String, Object> dataMap = new HashMap<>();
//        dataMap.put("msgHistoryModels", gson.toJson(ZcImGroupMode2));
//
//        responseJson.setDataMap(dataMap);
//        return responseJson;

//    }
}}
